<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div id="app">
    <component v-for="item1 in items" v-bind:wen="item1"></component>
</div>
<script src="https://cdn.jsdelivr.net/npm/vue@2.5.21/dist/vue.min.js"></script>
<script>
    /*组件名字不能使用大写的*/
    Vue.component("component",{
        props:['wen'],
        template: '<li>{{wen}}</li>'
    });
    var vm=new Vue({
        el:"#app",
        data:{
            items:["大哥","二弟","小弟"]
        }
    });
</script>
</body>
</html>